From 7c0889638450a0de588b8c33a3af7d192ced6ba7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 18 Jan 2014 17:55:04 -0500 Subject: [PATCH] path bar: Request enough natural width to fit all buttons Otherwise, we are at the mercy of the container giving us more space than we request, which does not always work. --- gtk/gtkpathbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c index ec3364b724..3a1c821623 100644 --- a/gtk/gtkpathbar.c +++ b/gtk/gtkpathbar.c @@ -371,7 +371,7 @@ gtk_path_bar_get_preferred_width (GtkWidget *widget, } *minimum = MAX (*minimum, child_min); - *natural = MAX (*natural, child_nat); + *natural = *natural + child_nat; } /* Add space for slider, if we have more than one path */ -- 2.30.2